package apple.p1;

/**
 * @author Lenovo
 */
public class SearchlastString {
    public static void main(String[] args) {
        String strOrig = "Hello world ,Hello Ru noob";
        int lastIndex = strOrig.lastIndexOf("Ru noob");
        if(lastIndex == - 1){
            System.out.println("没有找到字符串 Ru noob");
        }else {
            System.out.println("Ru noob 字符串最后出现的位置： " + lastIndex);
        }
    }
}
